import paho.mqtt.client as mqtt

mqttc = mqtt.Client()
mqttc.connect("10.102.24.227", port=1883, keepalive=60, bind_address="")
mqttc.loop_start()
# {"type":"ctrl","dev_type":"video","action":"on"}
while True:
    data=input()
    mqttc.publish('/126465/h7OIAeHY/QoS_1',bytes(data,"utf-8"))